-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add readinessProbe config for tidb #3438
Conversation
ref pingcap/tidb#20649 Add this config support like this: ``` tidb: readinessProbe: statusAPI: {} ``` This will make tidb pod use Exec handle to run curl probe the url 127.0.0.1:10080/status Default still use TCPPPort(4000) for compatibility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
BTW, should UT test setting Host
? I think it's also okay without that.
as: ``` config: readinessProbe: type: "command" ```
For the manual test, did you use the tidb image with |
yes, you can set baseImage as build and push using pingcap/tidb#20694 only version v4.0.7, see https://hub.docker.com/repository/docker/july2993/tidb |
Codecov Report
@@ Coverage Diff @@
## master #3438 +/- ##
==========================================
+ Coverage 52.13% 55.33% +3.20%
==========================================
Files 162 162
Lines 16587 16609 +22
==========================================
+ Hits 8647 9191 +544
+ Misses 7103 6538 -565
- Partials 837 880 +43
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/test pull-e2e-kind |
1 similar comment
/test pull-e2e-kind |
/merge |
Your auto merge job has been accepted, waiting for:
|
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-1.1 in PR #3445 |
What problem does this PR solve?
Add readinessProbe config for tidb to support probe tidb's readiness by requesting 127.0.0.0:10080/status
fix #2132
What is changed and how does it work?
ref pingcap/tidb#20649
Add this config support like this:
This will make tidb pod use Exec handle to run curl probe the url 127.0.0.1:10080/status
Default still use TCPPPort(4000) for compatibility
Check List
Tests
Side effects
Related changes
Does this PR introduce a user-facing change?: